<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>赠课信息</title>
<meta name="renderer" content="webkit">	
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
<meta name="apple-mobile-web-app-status-bar-style" content="black">	
<meta name="apple-mobile-web-app-capable" content="yes">	
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/table.css">
</head>
<body>
	<div class="content-head">悦宝园会员管理系统</div>
	<div class="content-main">
		<div class="side-nav" ms-controller="navBar">
			<ul class="nav-item">
				<li><a href="main.html" class="nav-item-front nav-item-add">首页</a></li>
				<li ms-for="el in @navTitleArr">
					<a href="javascript:;" class="nav-item-front">{{el.par}}</a>
					<dl class="nav-item-child">
						<dd ms-for="($index, ex) in el.child"><a ms-attr='{href: el.href[$index]}'>{{ex}}</a></dd>
					</dl>
				</li>
			</ul>
		</div>
		<div class="content bg-gray"  ms-controller="main">
			<div class="tab-content">
				<div class="tab-item">
					<div class="sub-main">
						<p class="sub-title"><i>赠课信息</i></p>
						<div class="import-area passClassInfo-area">
							<div class="passClassInfo-flexArea">
								<p>姓名</p>
								<b ms-html="@name()"></b>
							</div>
							<div class="passClassInfo-flexArea">
								<p>已购课时</p>
								<b ms-html="@buyNum()"></b>
							</div>
							<div class="passClassInfo-flexArea">
								<p>剩余赠课数</p>
								<b ms-html="@subClass()"></b>
							</div>
						</div>
						<div class="passRecord-area">
							<p ms-for="el in @freeInfo">
								<span>{{el.date}}</span>
								<span>赠课数：{{el.num}}</span>
								<span>{{el.info}}</span>
							</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<script src="js/jq.js"></script>
<script src="js/avalon.js"></script>
<script src="js/main.js"></script>
<script>
(function() {
	var parName = baseFunc.getSessionData("jumppage");
	var dataObj = baseFunc.getStorageData("member", {flag: parName})[0];
	var vm = avalon.define({
	    $id: "main",
	    name: function() {
	    	if(dataObj.nickName) {
	    		return dataObj.name + "(" + dataObj.nickName + ")";
	    	} else {
	    		return dataObj.name;
	    	}
	    },
	    buyNum: function() {
	    	return dataObj.buyInfo[dataObj.buyInfo.length - 1]["num"];
	    },
	    subClass: function() {
	    	return dataObj.classNum.free;
	    },
	    freeInfo: dataObj.freeClass
	})
})();
</script>
</body>
</html>